package com.traffic.mapper;

import java.util.List;
import com.traffic.domain.PerLeaveRequests;
import org.apache.ibatis.annotations.Mapper;

/**
 * 请假申请Mapper接口
 * 
 * @author 郭世纪
 * @date 2024-12-08
 */
@Mapper
public interface PerLeaveRequestsMapper 
{
    /**
     * 查询请假申请
     * 
     * @param overtimeId 请假申请主键
     * @return 请假申请
     */
    public PerLeaveRequests selectPerLeaveRequestsByOvertimeId(Long overtimeId);

    /**
     * 查询请假申请列表
     * 
     * @param perLeaveRequests 请假申请
     * @return 请假申请集合
     */
    public List<PerLeaveRequests> selectPerLeaveRequestsList(PerLeaveRequests perLeaveRequests);

    /**
     * 新增请假申请
     * 
     * @param perLeaveRequests 请假申请
     * @return 结果
     */
    public int insertPerLeaveRequests(PerLeaveRequests perLeaveRequests);

    /**
     * 修改请假申请
     * 
     * @param perLeaveRequests 请假申请
     * @return 结果
     */
    public int updatePerLeaveRequests(PerLeaveRequests perLeaveRequests);

    /**
     * 删除请假申请
     * 
     * @param overtimeId 请假申请主键
     * @return 结果
     */
    public int deletePerLeaveRequestsByOvertimeId(Long overtimeId);

    /**
     * 批量删除请假申请
     * 
     * @param overtimeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePerLeaveRequestsByOvertimeIds(Long[] overtimeIds);
}
